//===============================================================================
// Microsoft patterns & practices
// Guidance Explorer Offline Client
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================


using System;
using System.Drawing;
using System.Windows.Forms;

namespace GuidanceExplorer.Model
{
    [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
    public sealed class LinkMenuItemAttribute : MenuItemAttribute
    {
        public LinkMenuItemAttribute(int position, string menuItemName, string commandName, Keys shortCut)
            : base(position, menuItemName, commandName, shortCut)
        {
        }

        public LinkMenuItemAttribute(int position, string menuItemName, string multipleSelectionName, string commandName, Keys shortCut)
            : base(position, menuItemName, multipleSelectionName, commandName, shortCut)
        {
        }

        public LinkMenuItemAttribute(int position, string menuItemName, string commandName, Type conditionType, Keys shortCut)
            : base(position, menuItemName, commandName, conditionType, shortCut)
        {
        }

        public LinkMenuItemAttribute(int position, string menuItemName, string multipleSelectionName, string commandName, Type conditionType, Keys shortCut)
            : base(position, menuItemName, multipleSelectionName, commandName, conditionType, shortCut)
        {
        }

        public LinkMenuItemAttribute(int position, string menuItemName, string commandName, Type conditionType, Type menuItemsProviderType, Keys shortCut)
            : base(position, menuItemName, commandName, conditionType, menuItemsProviderType, shortCut)
        {
        }

        public LinkMenuItemAttribute(int position, string menuItemName, string multipleSelectionName, string commandName, Type conditionType, Type menuItemsProviderType, Keys shortCut)
            : base(position, menuItemName, multipleSelectionName, commandName, conditionType, menuItemsProviderType, shortCut)
        {
        }

        public ToolStripItemAlignment Alignment
        {
            get { return ToolStripItemAlignment.Right; }
        }

        public Color ForeColor
        {
            get { return Color.Blue; }
        }

        public Font TextFont
        {
            get { return new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline); }
        }
    }
}
